package com.listeningframework.boot.autoconfigure.security.userdetails;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 手风琴菜单
 *
 * @author Listening
 * @version $Id: SecurityMenus.java, v 0.1 2014年11月2日 上午10:48:41 Listening Exp $
 */
public class SecurityMenus implements Serializable {
    /**  */
    private static final long serialVersionUID = -4487765409965920067L;
    /**
     * Accordion菜单数据
     */
    private List<SecurityMenusAccordion> securityAccordionList = Lists.newArrayList();
    /**
     * Accordion Tree Nodes
     */
    private Map<String, List<SecurityMenusAccordionTree>> accordionTreeListMap = Maps.newHashMap();

    public Map<String, List<SecurityMenusAccordionTree>> getAccordionTreeListMap() {
        return accordionTreeListMap;
    }

    public void setAccordionTreeListMap(Map<String, List<SecurityMenusAccordionTree>> accordionTreeListMap) {
        this.accordionTreeListMap = accordionTreeListMap;
    }

    public List<SecurityMenusAccordion> getSecurityAccordionList() {
        return securityAccordionList;
    }

    public void setSecurityAccordionList(List<SecurityMenusAccordion> securityAccordionList) {
        this.securityAccordionList = securityAccordionList;
    }

    public void addTreeData(String menuId, List<SecurityMenusAccordionTree> dataList) {
        accordionTreeListMap.put(menuId, dataList);
    }

}
